import React, {Component} from 'react';
import { Button ,Calendar, Cell} from 'react-vant';
import { ArrowLeft } from '@react-vant/icons';
class App extends Component {
    render() {
        console.log(this.props)
        return (
            <div>
                <Button type="primary">11</Button> <br/>
                <ArrowLeft/> <br/>
                <Calendar>
                    {(val, actions) => (
                        <Cell
                            isLink
                            title='单个日期'
                            value={val ? val.toLocaleDateString() : '请选择日期'}
                            onClick={() => actions.open()}
                        />
                    )}
                </Calendar>
            </div>
        );
    }
}

export default App;